package com.kry.mbs.validator;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;
import com.kry.mbs.model.Bookingrecord;

public class BookingrecordValidator extends Validator{

	@Override
	protected void validate(Controller c) {
		validateRequiredString("bookingrecord.roomNo", "errorMsg", "请输入roomNo!");
	}

	@Override
	protected void handleError(Controller c) {
		 c.keepModel(Bookingrecord.class);
	}

}
